package com.young.ysepay.connector;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Author: WANGNING
 * @Email wyn20140226@aliyun.com
 * @Date: 2019/6/4 10:47
 * @Des 服务商中心接口连接器
 */
@Service
@FeignClient(name = "service-sysconfig")
public interface SysconfigFeign {
    //够样优店-银盛支付-环境配置参数
    @RequestMapping(value = "/businessPram/ys", method = RequestMethod.GET)
    String getYSBusiness();

    /**
     * 获取唯一id
     * @return
     */
    @RequestMapping(value = "/api/segment/get/leaf", method = RequestMethod.GET)
    String getUuidByLeaf();

    /**
     * @Author zhaopengjun
     * @Description //获取平台
     * @Date 14:02 2019/6/26
     * @Param
     * @return
     **/
    //获取在银盛开设的平台报备账号
    @RequestMapping(value = "/common/ys/getPlanformCode", method = RequestMethod.GET)
    String getYSPlanformCode();

    //获取主商户号
    @RequestMapping(value = "/common/ys/getPayeeUsercode", method = RequestMethod.GET)
    String getPayeeUsercode();
    //获取营销账户
    @RequestMapping(value = "/common/ys/getYSgymarketing", method = RequestMethod.GET)
    String getYSgymarketing();
}